package com.erdos.upc.entity;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

import com.erdos.common.entity.AbstractEntity;


public class SecurityRole extends AbstractEntity {
	private String securityRoleId;
	private String securityRoleName;
	private String securityRoleDesc;
	private String facilityId;
	private String roleGroup;
	/**
	 * @return the securityRoleId
	 */
	public String getSecurityRoleId() {
		return securityRoleId;
	}
	/**
	 * @return the securityRoleName
	 */
	public String getSecurityRoleName() {
		return securityRoleName;
	}
	/**
	 * @param securityRoleName the securityRoleName to set
	 */
	public void setSecurityRoleName(String securityRoleName) {
		this.securityRoleName = securityRoleName;
	}
	/**
	 * @return the securityRoleDesc
	 */
	public String getSecurityRoleDesc() {
		return securityRoleDesc;
	}
	/**
	 * @param securityRoleDesc the securityRoleDesc to set
	 */
	public void setSecurityRoleDesc(String securityRoleDesc) {
		this.securityRoleDesc = securityRoleDesc;
	}
	/**
	 * @return the facilityId
	 */
	public String getFacilityId() {
		return facilityId;
	}
	/**
	 * @param facilityId the facilityId to set
	 */
	public void setFacilityId(String facilityId) {
		this.facilityId = facilityId;
	}
	/**
	 * @return the roleGroup
	 */
	public String getRoleGroup() {
		return roleGroup;
	}
	/**
	 * @param roleGroup the roleGroup to set
	 */
	public void setRoleGroup(String roleGroup) {
		this.roleGroup = roleGroup;
	}
	/**
	 * @param securityRoleId the securityRoleId to set
	 */
	public void setSecurityRoleId(String securityRoleId) {
		this.securityRoleId = securityRoleId;
	}
	/**
	 * equals方法复写
	 */
	public boolean equals(Object o) {
		if (!(o instanceof SecurityRole)) {
			return false;
		}
		SecurityRole securityRole = (SecurityRole) o;
		return new EqualsBuilder().append(this.getSid(), securityRole.getSid()).isEquals();
	}

	/**
	 * hashCode方法复写
	 */
	public int hashCode() {
		return new HashCodeBuilder(61, 15).append(this.getSid()).toHashCode();
	}

	
}




















